class ExerciseOne {
    static public void main(String args[]) {
        //non-static member valuable can`t be visited by class name
        //System.out.println(StaticTest.num);
        System.out.println("Visit member valuables by class name:");
        System.out.println("value: " + String.valueOf(StaticTest.value));

        System.out.println("Visit member valuables by instance:");
        StaticTest test1 = new StaticTest();
        StaticTest test2 = new StaticTest();
        test1.value = 2;
        test1.num = 3;
        System.out.println("value in test2: " + String.valueOf(test2.value));
        System.out.println("num in test2: " + String.valueOf(test2.num));
    }
}
